package fr.upmc.aladyn.transactionables.tests.objects;

import fr.upmc.aladyn.transactionables.annotations.Transactionable;

/**
 * <p>A Point with two coordonates : x and y</p>
 * @author Alexis Deluze
 *
 */
@Transactionable
public class Point {

	private int x;
	private int y;
	
	public Point(int xx, int yy) {
		x = xx;
		y = yy;
	}
	
	public void setX(int xx){
		x = xx;
	}
	
	public void setY(int yy){
		y = yy;
	}
	
	public int getX(){
		return x;
	}
	
	public int getY(){
		return y;
	}
	
	public String toString(){
		return "Point("+x+","+y+")";
	}
}
